// tableId 配置
export const tableIdConfig = {
  user: 'user',
  deviceType: 'deviceType',
  manufacturer: 'manufacturer',
  series: 'series',
  model: 'model',
  linkType: 'linkType',
  protocolType: 'protocolType',
  analyzeFunc: 'analyzeFunc',
  generalFunc: 'generalFunc',
  generalParam: 'generalParam',
  generalCommand: 'generalCommand',
  genCommCommand: 'genCommCommand',
  thirdPartyPlatform: 'thirdPartyPlatform',
  platformInterface: 'platformInterface',
  genCommParam: 'genCommParam',
  protocol: 'protocol',
  command: 'command',
  device: 'device',
  operationLog: 'operationLog',
  room: 'room',
  roomDevice: 'roomDevice',
  roomTemplate: 'roomTemplate',
  component: 'component',
  componentReview: 'componentReview',
  project: 'project',
  ipad:'ipad',
  generalProtocolCommand: 'generalProtocolCommand',
  generalProtocol: 'generalProtocol',
  protocolComponent: 'protocolComponent',
  compositeWidget:'compositeWidget',
  attribute:'attribute',
  events:'events',
  service:'service',
  dataModel:'dataModel',
};

// tableId 映射
export const tableIdMap = {
  user: 'U',
  deviceType: 'DT',
  manufacturer: 'DMF',
  series: 'DS',
  model: 'DM',
  linkType: 'LT',
  protocolType: 'PT',
  analyzeFunc: 'AF',
  generalFunc: 'GF',
  generalParam: 'GP',
  generalCommand: 'GC',
  genCommCommand: 'GCC',
  thirdPartyPlatform: 'TPP',
  platformInterface: 'PI',
  generalProtocol:'GPC',
  genCommParam: 'GCP',
  protocol: 'DP',
  command: 'DC',
  device: 'D',
  operationLog: 'OL',
  room: 'RM',
  roomDevice: 'RMD',
  roomTemplate: 'RMT',
  component: 'CM',
  componentReview: 'CMR',
  project: 'PJ',
};

// table 操作按钮配置
export const tableOptBtnConfig = {
  detail: {
    label: '查看',
    type: 'detail'
  },
  edit: {
    label: '编辑',
    type: 'edit'
  },
  delete: {
    label: '删除',
    type: 'delete'
  },
  copy: {
    label: '复制',
    type: 'copy'
  },
  upload: {
    label: '上传资源',
    type: 'upload'
  },
  download: {
    label: '下载附件',
    type: 'download'
  },
  export: {
    label: '导出',
    type: 'export'
  },
  select: {
    label: '选择',
    type: 'select'
  },
  command: {
    label: '命令',
    type: 'command'
  },
  protocol: {
    label: '协议',
    type: 'protocol'
  },
  resetPwd: {
    label: '重置密码',
    type: 'resetPwd'
  },
  review: {
    label: '审核',
    type: 'review'
  },
  pass: {
    label: '通过',
    type: 'pass'
  },
  back: {
    label: '驳回',
    type: 'back'
  },
  history: {
    label: '操作记录',
    type: 'history'
  },
  programming: {
    label: '高级编程',
    type: 'programming'
  },
  check: {
    label: '校验',
    type: 'check'
  },
  preview: {
    label: '预览',
    type: 'preview'
  },
  assetManage: {
    label: '图片资源管理',
    type: 'assetManage'
  },
  addDevice: {
    label: '添加',
    type: 'addDevice'
  },
  roomComponent: {
    label: '房间',
    type: 'roomComponent'
  },
  audit: {
    label: '提交审核',
    type: 'audit'
  },
  deleteAudit: {
    label: '撤回审核',
    type: 'deleteAudit'
  },
  roomUpload:{
    label: '房间图片管理',
    type: 'roomUpload'
  },
  exportZip:{
    label: '导出工程资源包',
    type: 'exportZip'
  },
  share: {
    label: '分享',
    type: 'share'
  },
  group: {
    label: '设置分组',
    type: 'group'
  },
  widgetList: {
    label: '小组件',
    type: 'widgetList'
  },
  release: {
    label: '发布',
    type: 'release'
  },
  deleteRelease: {
    label: '取消发布',
    type: 'deleteRelease'
  },
  relateProtocol: {
    label: '关联通用协议组件',
    type: 'relateProtocol'
  },
  package: {
    label: '安装包管理',
    type: 'package'
  }
};
